package com.subl.controller;

import com.subl.service.LoggerApply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private LoggerApply loggerApply;

    @GetMapping("hello")
    public String sayHello() throws Exception {
        loggerApply.lingLogger("hello");
        return "hello world!";
    }
}
